using System;
using System.Collections.Generic;
using System.Text;



namespace Controller
{
    public class Usuario
    {
        public Usuario() {}

        public static void CriarUsuario(String strLogin, String strNome, String strSenha , bool bolAdmin)
        {
            String senhaCrypted = CryptoHelper.Encrypt(strSenha);
            site.Usuarios usu = new site.Usuarios();
            usu.Criar(strLogin, senhaCrypted, strNome, bolAdmin);
        }

        public static void AutenticarUsuario(String strLogin, String strSenha )
        {
            String senhaCrypted = CryptoHelper.Encrypt(strSenha);
            site.Usuarios usu = new site.Usuarios();
            usu.Autenticar(strLogin, strSenha);
        }

    }
}
